package com.hainatong.mvvmbase.base;

public class LiveResult<T>
{
    private boolean isSuccess;

    private String msg;

    private T data;

    public LiveResult()
    {
    }

    public LiveResult(boolean isSuccess, String msg)
    {
        this.isSuccess = isSuccess;
        this.msg = msg;
    }

    public LiveResult(boolean isSuccess, T t)
    {
        this.isSuccess = isSuccess;
        this.data = t;
    }


    public boolean isSuccess()
    {
        return isSuccess;
    }

    public void setSuccess(boolean success)
    {
        isSuccess = success;
    }

    public String getMsg()
    {
        return msg;
    }

    public void setMsg(String msg)
    {
        this.msg = msg;
    }

    public T getData()
    {
        return data;
    }

    public void setData(T data)
    {
        this.data = data;
    }
}
